/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-05-28
 * Time: 16:40
 */
public class Date {

    public int year;
    public int month;


    public int day;
    public Date(){
        this(2025,5,29);
    }

    @Override
    public String toString() {
        return "Date{" +
                "year=" + year +
                ", month=" + month +
                ", day=" + day +
                '}';
    }

    public Date(int year, int month, int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void print(){
        System.out.println(year+"-"+month+"-"+day);
    }

    public static void main(String[] args) {
        //Date d1=new Date();
        //d1.print();

        Date d2=new Date(2025,5,29);
        d2.print();
    }
}
